package ua.lviv.franko.solvers.stressanalysis.oneDimention.cylindrical;

import ua.lviv.franko.integration.IFunction1D;

public class EquationParameters {
	// equation parameters
	private double		D;
	private double		G;

	private IFunction1D	f1;
	private IFunction1D	f2;

	public EquationParameters() {
	}

	public EquationParameters(double d, double g, IFunction1D f1, IFunction1D f2) {
		super();
		D = d;
		G = g;
		this.f1 = f1;
		this.f2 = f2;
	}

	public EquationParameters(double kPrime, double E, double h, double nu, IFunction1D f1, IFunction1D f2) {
		super();
		D = (kPrime * E * h) / (2.0 * (1.0 + nu));
		G = (E * Math.pow(h, 3)) / (12.0 * (1.0 - nu * nu));
		this.f1 = f1;
		this.f2 = f2;
	}

	public double getD() {
		return D;
	}

	public void setD(double d) {
		D = d;
	}

	public double getG() {
		return G;
	}

	public void setG(double g) {
		G = g;
	}

	public IFunction1D getF1() {
		return f1;
	}

	public void setF1(IFunction1D f1) {
		this.f1 = f1;
	}

	public IFunction1D getF2() {
		return f2;
	}

	public void setF2(IFunction1D f2) {
		this.f2 = f2;
	}

}
